<div class="topbar" xmlns:th="http://www.thymeleaf.org" th:fragment="top_bar(userDetails)">
    <!-- LOGO -->
    <div class="topbar-left">
        <div class="text-center">
            <a href="/admin/home" class="logo">
                <i class="md md-terrain"></i>
                <span>File Share</span>
            </a>
        </div>
    </div>
    <div class="navbar navbar-default" role="navigation">
        <div class="container">
            <div class="">
                <div class="pull-left">
                    <button class="button-menu-mobile open-left">
                        <i class="fa fa-bars"></i>
                    </button>
                    <span class="clearfix"></span>
                </div>
                <form class="navbar-form pull-left" role="search">
                    <div class="form-group">
                        <input type="text" class="form-control search-bar" placeholder="Type here for search...">
                    </div>
                    <button type="submit" class="btn btn-search">
                        <i class="fa fa-search"></i>
                    </button>
                </form>
                <ul class="nav navbar-nav navbar-right pull-right">
                    <li class="hidden-xs">
                        <a href="#" id="btn-fullscreen" class="waves-effect waves-light">
                            <i class="md md-crop-free"></i>
                        </a>
                    </li>
                    <li th:if="${loginInfo} != null" class="dropdown">
                        <a href=""
                           class="dropdown-toggle profile"
                           data-toggle="dropdown"
                           aria-expanded="true">
                            <img th:src="${loginInfo.getUser().getAvatar()}" alt="user-img" class="img-circle">
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="#">
                                    <i class="md md-face-unlock"></i> Profile
                                </a>
                            </li>
                            <li>
                                <a href="#">
                                    <i class="md md-settings"></i> Settings
                                </a>
                            </li>
                            <li>
                                <a href="#">
                                    <i class="md md-lock"></i> Lock screen
                                </a>
                            </li>
                            <li>
                                <a href="/login/out">
                                    <i class="md md-settings-power"></i> Logout
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>